Output Devices

Texto Justificado

Group assignment:

  • Measure the power consumption of an output device.
  • Document your work on the group work page and reflect on your individual page what you learned.

Individual assignments

  • Add an output device to a microcontroller board you've designed and program it to do something.

Group Assignment

  • Here is the link where you can see the development of the week's group assignment.Group Assignment

During this week, we also carried out teamwork through the ZOOM platform. To do this, we used a multimeter to perform power consumption tests on a device or load. In this case, we focused on measuring the consumption of energy of a minipump.

Fluke 87V Industrial Multimeter

  • For voltage, resistance and continuity tests, we use the Fluke brand multimeter. It is a piece of equipment of excellent quality and highly recommended for its precision and reliability.

Main features

  • True RMS AC voltage and current for accurate measurements for non-linear signals.
  • Selectable filter for accurate frequency and voltage measurements in variable speed drives.
  • 0.05% DC Accuracy 6000 counts, 3-3/4 digits.
  • 4-1/2 digit resolution for accurate measurements (20,000 counts).
  • Measurements up to 1000 V AC and DC.
  • Measurement up to 10 A; 20 A for a maximum of 30 seconds.
  • Integrated thermometer that avoids the need to carry an additional tool (temperature probe included).
  • FFrequency up to 200 kHz and duty cycle (in %).
  • Resistance, continuity and diode test.
  • 10,000 µF capacitance range on motors and components.
  • Recording of minimum, maximum and average values ​​with alarm for automatic capture of variations
  • Peak capture to record transients as fast as 250 µs
  • ll inputs have been updated to the 3rd edition of ANSI/ISA S82.01 and EN61010-1 CAT IV 600V and CAT III, 1000 V. They can withstand impulses greater than 8000 V and reduce risks related to overloads and spikes.

Tests with the Multimeter

To carry out the power consumption tests, we use a multimeter, a mini pump model JT-180B, a constructed output board, the XIOA RP2040 and a 6V battery with a capacity of 4A.

Imagen pic193


Imagen pic207

The first step is to place the components on the motherboard: the controller or board with the relay, the TDS sensor and the battery.

It is also important to position the multimeter correctly, with the black lead in the COM position and the red lead in the mA position.

Imagen pic193


Imagen pic207

When carrying out the measurements, it can be seen that the energy consumption of this minipump is 53.95 mA. This information is crucial to understand the energy requirement of the pump and ensure adequate power in the circuit design.

Imagen pic193


During our experience this week with the multimeter, we understood its vital importance in the electronic field. This device allows us to measure and confirm key values ​​of electronic components, such as resistance, perform diode tests, evaluate the continuity of circuits and, fundamentally, determine the energy consumption of our loads, as in the case of the minipump. This information is crucial to selecting a suitable battery and correctly sizing the electronic components needed for our project.

Individual Assignment

For individual work, a board was designed using KiCad software with the objective of controlling a minipump, which is an actuator that demands more than a simple resistance in the circuit. In this case, a relay was incorporated that, when activated, will allow the load to be activated by opening the corresponding step.

Electronic Design

Imagen pic193


Imagen pic207

The components needed for this board include a relay, resistors, an indicator LED, a transistor that will amplify the current and activate the relay, as well as their respective header connectors.

Imagen pic193


Imagen pic207

After completing the schematic, the next step is to move to the PCB design. In this stage, the packages or symbols that represent the actual size components are imported. This is done by simply updating the component library in the toolbar, as indicated in the images.

Imagen pic193


Imagen pic207

In this step, we proceed to distribute the components as necessary on the printed circuit board (PCB) and perform routing, which consists of tracing the electrical connections between each component.

Imagen pic193


Imagen pic207

As you can see, the board is ready and you can visualize in 3D what it will look like once all the components are soldered in place.

Soldering the board

With the board already developed on the CNC, the next step is to solder the electronic components in place.

  • Relay.
  • Resistors.
  • LED indicator.
  • Transistor.
  • Header connectors.
Imagen pic193


Imagen pic207

We begin by soldering the relay and the diode, while we review the specifications of each component in detail.

Imagen pic193


Imagen pic207

After soldering the relay and diode, we continue with the 1.5k resistor that is connected in series with the LED diode. Next, we solder the 1k resistor that goes to the base of the J3Y transistor, followed by the headers as shown in the images.

Imagen pic193


Imagen pic207

Finally, all the remaining components are connected and how they will be interconnected on the motherboard is presented.

Imagen pic193


Imagen pic207

We found a problem after soldering the parts and performing a test; Unfortunately, the system was not working. I performed measurements on all components, including diodes, resistors, and transistors, and they were all within normal values. However, when measuring the relay, I discovered the source of the error. The coil was intact, but the contact on the NC (normally closed) side did not open, while the contact on the NO (normally open) side remained active, which explained the system's non-function.

Imagen pic207

I made a mistake by not taking measurements before soldering the components, and even before designing the entire board taking into account the dimensions of the relay, since it was the only one I had available. Now, it is time to rectify the situation and change the component in the design for a new relay, also considering its dimensions, since I do not have the SMD type

Imagen pic193


Imagen pic207

Every mistake represents a valuable learning opportunity that stays with us. In my case, I will choose to replace the relay with a new board that will use a DIP type mini relay, and the other components will follow the same specification.

Since all components are identical, with the only variation being the relay and board size, we will not face additional difficulties in the design phase.

Imagen pic193


Imagen pic207

As you can see, the component change has been made. In this case, the footprint is wider, resulting in a larger plate working area. The procedure remains the same; The component that has been modified is simply routed, as shown in the following image.

Imagen pic193


Imagen pic207

Lastly, we can view the 3D image of the plate to get an idea of ​​how it will look. Later, we exported the Gerber files to be able to work with Fatcam.

Imagen pic193


Imagen pic207

The next step in the CNC machining process is to import the Gerber file into the Flatcam software and configure the corresponding parameters, such as the tool size, which in this case is 3.175 mm, and the tilt angle ranging from 0.1 up to 30 degrees.

Imagen pic193


Imagen pic207

The next step involves setting up the roughing using the tool, setting a value of -0.0250 and the movements on the XYZ axes to 45 degrees. Once configured, the generated area will be displayed in blue. To finish, we simply click on "Generate

Imagen pic193


Imagen pic207

Once we have generated the G-code files, we proceed to the machining stage to obtain the desired plate. Once the board is obtained, we are ready to solder the electronic components in place.

Imagen pic193


Imagen pic207

The next step involves soldering the components, such as relays and resistors, following their arrangement on the board according to the previously established design.

Imagen pic193


Imagen pic207

Yes, you can solder the components together on the board. This includes the J3Y transistor, LED, resistor and headers as necessary. It is important to follow the design and planned layout on the board to ensure correct connection and operation of the circuit.

Imagen pic193


Imagen pic207

Universal Board Output Pins

Imagen pic193

Imagen pic193


Imagen pic207

Functional test with the relay and TDS sensor module

TDS sensor code to activate a relay and mini pump





Test run with LCD I2C and universal board

Imagen pic193


Imagen pic207

LCD I2C code



In summary

It was hard work, but we finally managed to complete a new board. This experience taught me an important lesson: always perform measurements of all components before starting the design of the electronic board. This prior approach allows us to avoid costly errors and ensure a more efficient manufacturing process.

Links to all working files used this week

3. Pump-tds.ino
4. LCD_4x16_I2C.ino